#include "stdafx.h"
#include "TextWriter.h"

TextWriter::TextWriter(size_t start, size_t length):startOffset(start), endOffset(start + length), isClosed(false){
	buffer.reset(new GapVector(length));
}

void TextWriter::Close(){
	isClosed = true;
}